home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Apple Shared Library Manager / ASLM Examples / Sample Apps / CCPlusSample / Sources / SampleLibrary.exp < prev    next >
Encoding:
Text File  |  1996-11-19  |  1.7 KB  |  53 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SampleLibrary.exp
  3.  
  4.     Contains:    Library and FunctionSet declarations for CCPlusSampleLibrary
  5.  
  6.     Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  7.  
  8. */
  9.  
  10.  
  11. #include <LibraryManager.h>
  12. #include "SampleLibrary.h"
  13.  
  14. /*————————————————————————————————————————————————————————————————————————————————————
  15.     Library declarations defines the ID of the shared library and the version.\
  16.         initproc(optional)        "C" routine to be called immediately after loading 
  17.         cleanupProc(optional)    "C" routine to be called after library is unloaded
  18.         flags(optional)
  19.             noSegUnload            The segments of the shared library cannot be unloaded.
  20.             preload                All segments of the shared library should be loaded at
  21.                                 library load time.
  22.         id(required)            Defines the ID of the library
  23.         version(required)        Defines the version of the library.
  24.         memory(optional)         The default pool memory allocation will be the 
  25.             client                from client pool.
  26.             local                from local pool 
  27. ————————————————————————————————————————————————————————————————————————————————————*/
  28.  
  29. Library
  30. {
  31.     id         =    kTrafficLightLibID;
  32.     version =    1.1;
  33.     memory     =    client;
  34. };
  35.  
  36. /*————————————————————————————————————————————————————————————————————————————————————
  37.     Declarations of functions we want to export. If functions where pascal function,
  38.     we need to put the pascal keyword in front of the function name.
  39. ————————————————————————————————————————————————————————————————————————————————————*/
  40.  
  41. FunctionSet TrafficLight
  42. {
  43.     id         =    kTrafficLightFunctionSet;
  44.     version =     1.1;
  45.     exports =     NewTrafficLight, 
  46.                 FreeTrafficLight,
  47.                 GetLightState,
  48.                 SetLightState,
  49.                 DrawLight,
  50.                 AdjustTrafficLightMenus,
  51.                 DoTrafficLightMenuCommand;
  52. };
  53.